<?php

class DataProviderCest
{
    /**
     * @dataProvider pageProvider
     */
    public function staticPages(AcceptanceTester $I, \Codeception\Example $example)
    {
        echo  "####DataProvider###".PHP_EOL;
        echo  $example['url'].'|'.$example['title'].PHP_EOL;
    }

    /**
     * @return array
     */
    protected function pageProvider()
    {
        return [
            ['url'=>"/", 'title'=>"Welcome"],
            ['url'=>"/info", 'title'=>"Info"],
            ['url'=>"/about", 'title'=>"About Us"],
            ['url'=>"/contact", 'title'=>"Contact Us"]
        ];
    }
}